﻿using Abp.Application.Services;
using Batman.Cms.Core.Models.UpYun;
using Batman.Cms.Core.Tools;
using System.IO;
using System.Threading.Tasks;

namespace Batman.upyun.Services
{
    public class UpYunAppSvc : ApplicationService
    {
        public ToolBox ToolBox { get; set; }

        public async Task<UpYunUploadResult> WriteFileSync()
        {
            return await ToolBox.UpYunTool.UploadSync(File.ReadAllBytes(@"C:\Users\liaozenghui\Pictures\2121.png"));
        }
    }
}
